<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圆角边框写法</title>
    <style>
        .yuanxing {
            width: 200px;
            height: 200px;
            background-color: aqua;
            /* border-radius: 100px; */
            /* 50%就是宽高的一半 等价于100px */
            border-radius: 50%;
        }

        .juxing {
            width: 300px;
            height: 100px;
            background-color: aqua;
            /* 圆角矩形设置为高的一半 */
            border-radius: 50px;
        }
        .radius {
            width: 200px;
            height: 200px;
            border-radius: 10px 20px 30px 40px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    1.圆形的做法
    <div class="yuanxing"></div>
    2.圆角矩形的做法
    <div class="juxing"></div>
    3.设置不同圆角
    <div class="radius"></div>
    <img src="img/圆角边框写法.png" alt="">
</body>
</html>